/**
 * 
 */
package com.etc.module.model;

import com.etc.common.model.BaseModel;
import com.etc.operation.model.Operation;

/**
 * @author Administrator
 *
 */
public class ModuleOper extends BaseModel {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6106957365969297093L;
	
	/**
	 * 主键id
	 */
	private Integer tmroId;
	/**
	 * 模块
	 */
	private Module module;
	/**
	 * 功能
	 */
	private Operation operation;
	
	
	public ModuleOper() {
        super();
    }
	
    public ModuleOper(Integer tmroId) {
        super();
        this.tmroId = tmroId;
    }

    public ModuleOper(Integer tmroId, Module module, Operation operation) {
        super();
        this.tmroId = tmroId;
        this.module = module;
        this.operation = operation;
    }

    public Integer getTmroId() {
		return tmroId;
	}
	public void setTmroId(Integer tmroId) {
		this.tmroId = tmroId;
	}
	public Module getModule() {
		return module;
	}
	public void setModule(Module module) {
		this.module = module;
	}
	public Operation getOperation() {
		return operation;
	}
	public void setOperation(Operation operation) {
		this.operation = operation;
	}

    @Override
    public boolean equals(Object obj) {
        if(obj==this){
            return true;
        }
        if(null==obj){
            return false;
        }
        if(!(obj instanceof ModuleOper)){
            return false;
        }
        final ModuleOper other=(ModuleOper)obj;
        return (other.getTmroId().intValue()==getTmroId().intValue());
    }
	
	
	
}
